<?php defined('TSTP_VERSION') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Test_Types
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: year.tstp.php 157 2009-03-07 08:40:28Z molotsoft@gmail.com $
* @link $HeadURL: http://test-types.googlecode.com/svn/tags/2.0.1/types/datetime/year.tstp.php $
*/


function tstp_year($var) {
	return is_wholenum($var) && in_range(0, (int)$var, 9999); // lucky func
}


?>